"""
range()函数: 用于生成一个整数序列
    1. range(stop): 0 ~ stop-1
    2. range(start, stop): start ~ stop-1
    3. range(start, stop, step): start ~ stop-1, 步长为 step
"""
# 1. range(stop)
for i in range(10):
    print(i)

# 2. range(start, stop)
for i in range(1, 10):
    print(i)
    
# 3. range(start, stop, step)
for i in range(1, 10, 2):
    print(i)
